#pragma once

#include <string>
#include "Handles.h"

namespace Audio
{
	class Variable
	///////////////////////////////////////////////////////////////////////////////
	// Description: A variable is a string paired with a floating point number
	//				that is used to get values from a graph
	//
	// Recent Changes:
	// -brasmuss 3/29/2007 : Created
	///////////////////////////////////////////////////////////////////////////////
	{
	public:
		Variable(std::string& name, float min, float max, float value, VariableHandle handle) : m_value(value), m_initial(value), m_min(min), m_max(max), m_name(name), m_handle(handle) {}
		bool SetValue(float val);

		float			m_initial;
		float			m_value;
		float			m_min;
		float			m_max;
		std::string		m_name;
		VariableHandle	m_handle;
	};
}